home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / aindex.dir / 00747_Script_aIndexManager < prev    next >
Text File  |  1995-09-06  |  6KB  |  142 lines

  1. --òò╩aIndexManager
  2. property pTopicMenu , pLatchedAlpha
  3. on birth me 
  4.   return me
  5. end
  6.  
  7. on testIndexRollover me
  8.   --set the trace = true
  9.   set thisAlpha =  the mouseCast
  10.   if (thisAlpha > 0 and thisAlpha < 27) then 
  11.     set thisAlphaIndex = getAt(pTopicMenu,thisAlpha)
  12.     setTopicMenu(thisAlphaIndex)
  13.     clearRefLinkIcon(thisAlphaIndex)
  14.   else
  15.     if (objectP(pLatchedAlpha) ) then
  16.       --òò because the art department could not generate the
  17.       --òò the highlight art for the topic menu we need to
  18.       --disable the highlight fucnctionality (commented out below)
  19.       --if (rollover(2)) then
  20.       -- secondaryHilight (sub-menu)
  21.       -- set vOffset = the mouseV
  22.       --  setTopicHiLight(pLatchedAlpha , vOffset)
  23.       -- else
  24.       -- revert to latched topic menu
  25.       setTopicMenu(pLatchedAlpha) 
  26.       -- end if 
  27.     end if
  28.   end if
  29. end
  30.  
  31. on clickAlpha me
  32.   set thisAlpha = the mouseCast
  33.   if  (thisAlpha >= 1 and thisAlpha <= 26) then
  34.     set pLatchedAlpha = getAt(pTopicMenu,thisAlpha)
  35.     clearRefLinkIcon(pLatchedAlpha)
  36.   end if
  37. end
  38.  
  39. on clickTopic me 
  40.   set vOffset = the mouseV
  41.   selectTopicFromMenu(pLatchedAlpha,vOffset)
  42. end
  43.  
  44. on clickRefLink me , horzPos,vertPos
  45.   set vOffset = vertPos --the mouseV
  46.   clickRefLink(pLatchedAlpha,vOffset ,horzPos,vertPos)
  47. end
  48.  
  49. on resetIndex me
  50.   reset(pLatchedAlpha )
  51. end
  52.  
  53. on initIndex me
  54.   set pTopicMenu = []
  55.   set indexCount = 1
  56.   set topicMenuClass = the number of cast "aTopicMenu"
  57.   --on birth me , startCast , stopCast , theSprite , theDefaultCast┬
  58.             , functionCast ,iconCast  ,numLeftEntries, newRightEntries
  59.   --put "--òò A Topic Menu"  
  60.   set thisMenu = (birth (script topicMenuClass, 353 , 353 , 2 , 352 , 41 , 1002,  1, 0))
  61.   append pTopicMenu, thisMenu
  62.   set pLatchedAlpha = thisMenu
  63.   --put "--òò B Topic Menu"
  64.   set thisMenu =  (birth (script topicMenuClass, 354 , 354 , 2 , 352 , 41 ,1013,  2, 0))
  65.   append pTopicMenu, thisMenu
  66.   --put "--òò C Topic Menu"
  67.   set thisMenu =  (birth (script topicMenuClass, 355 , 355 , 2 , 352 , 41 ,1024,  9, 8))
  68.   append pTopicMenu, thisMenu
  69.   --put "--òò D Topic Menu"
  70.   set thisMenu =  (birth (script topicMenuClass, 356 , 356 , 2 , 352 , 41 ,1046,  2, 0))
  71.   append pTopicMenu, thisMenu
  72.   --put "--òò E Topic Menu"
  73.   set thisMenu =  (birth (script topicMenuClass, 357 , 357 , 2 , 352 , 41 ,1057,  3, 0))
  74.   append pTopicMenu, thisMenu
  75.   --put "--òò F Topic Menu"
  76.   set thisMenu =  (birth (script topicMenuClass, 358 , 358 , 2 , 352 , 41 ,1068,  8, 8))
  77.   append pTopicMenu, thisMenu
  78.   --put "--òò G Topic Menu"
  79.   set thisMenu =  (birth (script topicMenuClass, 359 , 359 , 2 , 352 , 41 ,1079,  4, 0))
  80.   append pTopicMenu, thisMenu
  81.   --put "--òò H Topic Menu"
  82.   set thisMenu =  (birth (script topicMenuClass, 360 , 360 , 2 , 352 , 41 ,1090,  4, 0))
  83.   append pTopicMenu, thisMenu
  84.   --put "--òò I Topic Menu"
  85.   set thisMenu =  (birth (script topicMenuClass, 0 , 0 , 0 , 352 , 41 ,331,  0, 0))
  86.   append pTopicMenu, thisMenu
  87.   --put "--òò J Topic Menu"
  88.   set thisMenu =  (birth (script topicMenuClass, 361 , 361 , 2 , 352 , 41 ,1101,  2, 0))
  89.   append pTopicMenu, thisMenu
  90.   --put "--òò K Topic Menu"
  91.   set thisMenu =  (birth (script topicMenuClass, 0 , 0 , 0 , 352 , 41 ,353,  0, 0))
  92.   append pTopicMenu, thisMenu
  93.   --put "--òò L Topic Menu"
  94.   set thisMenu = (birth (script topicMenuClass, 362 , 362 , 2 , 352 , 41 ,1112,  3, 0))
  95.   append pTopicMenu, thisMenu
  96.   --put "--òò M Topic Menu"
  97.   set thisMenu =  (birth (script topicMenuClass, 363 , 363 , 2 , 352 , 41 ,1123,  14, 0))
  98.   append pTopicMenu, thisMenu
  99.   --put "--òò N Topic Menu"
  100.   set thisMenu =  (birth (script topicMenuClass, 364 , 364 , 2 , 352 , 41 ,1145,  2, 0))
  101.   append pTopicMenu, thisMenu
  102.   --put "--òò O Topic Menu"
  103.   set thisMenu =  (birth (script topicMenuClass, 365 , 365 , 2 , 352 , 41 ,1156,  1, 0))
  104.   append pTopicMenu, thisMenu
  105.   --put "--òò P Topic Menu"
  106.   set thisMenu = (birth (script topicMenuClass, 366 , 366 , 2 , 352 , 41 ,1167,  9, 0))
  107.   append pTopicMenu, thisMenu
  108.   --put "--òò Q Topic Menu"
  109.   set thisMenu =  (birth (script topicMenuClass, 367 , 367 , 2 , 352 , 41 ,1178,  2, 0))
  110.   append pTopicMenu, thisMenu
  111.   --put "--òò R Topic Menu"
  112.   set thisMenu =  (birth (script topicMenuClass, 368 , 368 , 2 , 352 , 41 ,1189,  3, 0))
  113.   append pTopicMenu, thisMenu
  114.   --put "--òò S Topic Menu"
  115.   set thisMenu =  (birth (script topicMenuClass, 369 , 369 , 2 , 352 , 41 ,1200,  13, 9))
  116.   append pTopicMenu, thisMenu
  117.   --put "--òò T Topic Menu"
  118.   set thisMenu =  (birth (script topicMenuClass, 370 , 370 , 2 , 352 , 41 ,1222,  14, 0))
  119.   append pTopicMenu, thisMenu
  120.   --put "--òò U Topic Menu"
  121.   set thisMenu =  (birth (script topicMenuClass, 0 , 0 , 0 , 352 , 41 ,45,  0,0))
  122.   append pTopicMenu, thisMenu
  123.   --put "--òò V Topic Menu"
  124.   set thisMenu =  (birth (script topicMenuClass, 371 , 371 , 2 , 352 , 41 ,1244,  2, 0))
  125.   append pTopicMenu, thisMenu
  126.   --put "--òò W Topic Menu"
  127.   set thisMenu =  (birth (script topicMenuClass, 372 , 372 , 2 , 352 , 41 ,1255,  6, 0))
  128.   append pTopicMenu, thisMenu
  129.   --put "--òò X Topic Menu"
  130.   set thisMenu =  (birth (script topicMenuClass, 0 , 0 , 0 , 352 , 41 ,45,  0,0))
  131.   append pTopicMenu, thisMenu
  132.   --put "--òò Y Topic Menu"
  133.   set thisMenu =  (birth (script topicMenuClass, 0 , 0 , 0 , 352 , 41 ,479,  0, 0))
  134.   append pTopicMenu, thisMenu
  135.   --put "--òò Z Topic Menu"
  136.   set thisMenu =  (birth (script topicMenuClass, 0 , 0 , 0 , 352 , 41 ,45,  0,0 ))
  137.   append pTopicMenu, thisMenu
  138.   set the trace = FALSE
  139. end
  140.  
  141.  
  142.